package com.sxjh.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.sxjh.entity.Ic;
import com.sxjh.entity.param.IcListParam;
import com.sxjh.entity.result.IcListResult;
import com.sxjh.entity.result.IcWagonNumberResult;
import com.sxjh.mapper.IcMapper;
import com.sxjh.service.IcService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * <p>
 * IC卡列表  服务实现类
 * </p>
 *
 * @author zixin
 * @since 2021-06-06
 */
@Service
public class IcServiceImpl extends ServiceImpl<IcMapper, Ic> implements IcService {

  @Autowired
  private IcMapper icMapper;

  @Override
  public IPage<IcListResult> list(IPage iPage, IcListParam param) {
    return icMapper.list(iPage, param);
  }

  @Override
  public List<IcListResult> select(IcListParam param) {
    return icMapper.select(param);
  }

  @Override
  public IcWagonNumberResult queryByIcNumber(String icNumber) {
    return icMapper.queryByIcNumber(icNumber);
  }


}
